Einhugur JWT Plugin

EinhugurJWT.JWTError Enum

Enum values for error codes that can be generated in the JWTException class.

enum EinhugurJWT.JWTError

Constants

ParamsObjectMayNotBeNil = 1Params object may not be nil.
EmptyArgument = 100If you passed a nil argument or empty string that shouldn't have been nil or empty string.
InvalidArgument = 200If you passed an invalid parameter.
OutOfMemory = 300Allocation failed, your out of memory at this point.
Overflow = 310Internal error caused by overflow.
SignatureCreationFailed = 400If signing a JWT failed.
ShaFailure = 410If one of the SHA-2 functions fails (e.g. SHA-256).
KeyParseFailure = 420If some PEM-formatted key string couldn't be parsed.
Base64Failure = 425Base64(URL) encoding or decoding error.
WrongKeyType = 450Returned if you passed the wrong private or public key type(e.g.trying to use an RSA key for ECDSA tokens, etc...). Especially for the ECDSA algorithms like ES256, ES384 and ES512 double - check that you passed keys of the correct curve, Only use the P - 256 curve for ES256, P - 384 (a.k.a.secp384r1) for ES384 and P - 521 (a.k.a.secp521r1) for ES512.
SeedFailiure = 500Seed failure in seed generator.
DecodeFailedInvalidTokenFormat = 600If the token is invalid (format-wise).
DecodeFailedMissingSignature = 700If the token is invalid because it's missing the signature (despite having specified an algorithm that isn't "none").
UnsupportedAlgorithm = 800Returned if the JWT signing algorithm parameter that was passed is not supported (e.g. the used l8w8jwt library was built without support for that algorithm, e.g. Ed25519).